<h1> Administration </h1>

<div class="tabbable">
  
  <ul class="nav nav-tabs">
    <li class="active"><a href="#tab1" data-toggle="tab">Utilisateurs</a></li>
  </ul>

  <div class="tab-content">

    <div class="tab-pane active" id="tab1">

      <!-- Formulaire de recherche personnalisé -->
      <form class="form-inline" action="<?php echo Router::url('administration'); ?>" method="post">

            <label class="labelAdmin"> Recherche personnalis&eacute; :  </label>

            <select name="option" class="input-medium">
              <option value="login">Login</option>
              <option value="idMembre">Id</option>
              <option value="mail">Email</option>
              <option value="dateInscription">Date d'inscription</option>
              <option value="typeMembre">Type de membre</option>
            </select>

            <input type="text" class="input-large" name="contrainte" placeholder="Contrainte" required>

            <button type="submit" class="btn" title="Rechercher"> <i class="icon-search"> </i></button>

      </form>

      <div class="alert alert-success center">
        <?php echo $this->infoRes; ?>
      </div> 

      <!-- Formaulaire d'action -->
      <form class="form-inline" action="<?php echo Router::url('administration'); ?>" method="post">
        <p id="actionUser">
          <label class="labelAdmin">  Action :  </label>
          <select name="action" class="input-large">
              <option value="sendMsg">--Envoyer un message</option>
              <option value="sendMail">--Envoyer un email</option>
              <option value="suppr">Supprimer</option>
            </select>
          <button type="submit" class="btn btn-primary"> Valider </button>
          <button type="reset" class="btn"> Annuler</button>
          <span class="labelAdmin">#</span>
          <br/>
        </p>

    	<table class="table table-striped table-hover">
    		<tr>
    			<th>
            <span class="thAdmin">Id</span>
            <div class="btn-group">
              <a href="<?php echo BASE_URL.'/administration/index/idMembre-asc'; ?>" class="btn btn-mini <?php if(isset($this->active['idMembre-asc'])) echo $this->active['idMembre-asc']; ?>"><i class=" icon-chevron-up"></i></a>
              <a href="<?php echo BASE_URL.'/administration/index/idMembre-desc'; ?>" class="btn btn-mini <?php if(isset($this->active['idMembre-desc'])) echo $this->active['idMembre-desc']; ?>"><i class=" icon-chevron-down"></i></a>
            </div>
          </th>
    			<th>
            <span class="thAdmin">Login</span>
            <div class="btn-group">
              <a href="<?php echo BASE_URL.'/administration/index/login-asc'; ?>" class="btn btn-mini <?php if(isset($this->active['login-asc'])) echo $this->active['login-asc']; ?>"><i class=" icon-chevron-up"></i></a>
              <a href="<?php echo BASE_URL.'/administration/index/login-desc'; ?>" class="btn btn-mini <?php if(isset($this->active['login-desc'])) echo $this->active['login-desc']; ?>"><i class=" icon-chevron-down"></i></a>
            </div>
          </th>
    			<th>
            <span class="thAdmin">Email</span>
            <div class="btn-group">
              <a href="<?php echo BASE_URL.'/administration/index/mail-asc'; ?>" class="btn btn-mini <?php if(isset($this->active['mail-asc'])) echo $this->active['mail-asc']; ?>"><i class=" icon-chevron-up"></i></a>
              <a href="<?php echo BASE_URL.'/administration/index/mail-desc'; ?>" class="btn btn-mini <?php if(isset($this->active['mail-desc'])) echo $this->active['mail-desc']; ?>"><i class=" icon-chevron-down"></i></a>
            </div>
          </th>
    			<th>
            <span class="thAdmin">Inscription</span>
            <div class="btn-group">
              <a href="<?php echo BASE_URL.'/administration/index/dateInscription-asc'; ?>" class="btn btn-mini <?php if(isset($this->active['dateInscription-asc'])) echo $this->active['dateInscription-asc']; ?>"><i class=" icon-chevron-up"></i></a>
              <a href="<?php echo BASE_URL.'/administration/index/dateInscription-desc'; ?>" class="btn btn-mini <?php if(isset($this->active['dateInscription-desc'])) echo $this->active['dateInscription-desc']; ?>"><i class=" icon-chevron-down"></i></a>
            </div>
          </th>
    			<th>
            <span class="thAdmin">Type membre</span>
            <div class="btn-group">
              <a href="<?php echo BASE_URL.'/administration/index/typeMembre-asc'; ?>" class="btn btn-mini <?php if(isset($this->active['typeMembre-asc'])) echo $this->active['typeMembre-asc']; ?>"><i class=" icon-chevron-up"></i></a>
              <a href="<?php echo BASE_URL.'/administration/index/typeMembre-desc'; ?>" class="btn btn-mini <?php if(isset($this->active['typeMembre-desc'])) echo $this->active['typeMembre-desc']; ?>"><i class=" icon-chevron-down"></i></a>
            </div>
          </th>
          <th>
            <span class="thAdmin">#</span>
          </th>
    		</tr>
    		<?php echo $this->tabUtilisateurs; ?>
		  </table>
    </form>

    </div>



    

  </div>

</div>

